package com.dreamweaver.aidlserver;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.os.RemoteException;

import androidx.annotation.Nullable;

public class DataService extends Service {
    String name;

    Binder binder = new IPerson.Stub() {
        public String getName() {
            return name;
        }

        @Override
        public void setName(String name) throws RemoteException {
            DataService.this.name = name;
        }
    };

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return binder;
    }


}
